﻿using System.ComponentModel;
using System.Windows.Controls;
using OpenAiClient.Services;
using OpenAiClient.ViewModels;
using Prism.Events;

namespace OpenAiClient.Views
{
    /// <summary>
    /// SettingView.xaml 的交互逻辑
    /// </summary>
    // ReSharper disable once RedundantExtendsListEntry
    public partial class SettingView : UserControl
    {
        public SettingView(
            IConfigService configService,
            IEventAggregator eventAggregator
        )
        {
            InitializeComponent();

            if (!DesignerProperties.GetIsInDesignMode(this))
            {
                DataContext = new SettingViewModel(configService, eventAggregator);
            }
        }
    }
}
